// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import { componentPlugin } from '@/components/CmpIndex.js'

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' // 持久化插件

// 引用样式文件
import '@/styles/common.scss'
const app = createApp(App)

const pinia = createPinia()

pinia.use(piniaPluginPersistedstate)
app.use(pinia)
// 导入封装好的图片懒加载的方法
import { imgpullazy } from '@/directives'
app.use(imgpullazy)
app.use(componentPlugin)

app.use(router)
app.mount('#app')




